package 脚本;

import java.awt.*;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;

public class pp果刷闪 {
    public static void main(String[] args) {
        Robot ro;
        qwq q=new qwq();
        int p=0;
        {
            while(1==1){
                try {
                    ro = new Robot();
                    ro.delay(2000);
                    for (int i = 0; i < 4; i++) {
                        ro.keyPress(KeyEvent.VK_4);
                        ro.keyRelease(KeyEvent.VK_4);
                        ro.mouseMove(488,591);
                        ro.delay(18000);
                        ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                        ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                        ro.delay(2000);
                    }
                    ro.delay(500);
                    ro.keyPress(KeyEvent.VK_4);
                    ro.keyRelease(KeyEvent.VK_4);
                    ro.mouseMove(1102,107);
                    ro.delay(3500);
                    ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                    ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                    ro.delay(200);
                    ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                    ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                    ro.delay(200);
                    ro.mouseMove(700,567);
                    ro.delay(700);
                    ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                    ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                    /*//打开背包
                    ro.keyPress(KeyEvent.VK_B);
                    ro.keyRelease(KeyEvent.VK_B);
                    ro.delay(500);
                    //打开树果
                    ro.mouseMove(908,355);
                    ro.delay(500);
                    ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                    ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                    //pp果位置
                    ro.mouseMove(910,420);
                    ro.delay(300);
                    ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                    ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                    //点击使用位置
                    ro.mouseMove(956,440);
                    ro.delay(300);
                    ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                    ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                    //使用对象位置
                    ro.mouseMove(966,484);
                    ro.delay(300);
                    ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                    ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                    //技能位置
                    ro.mouseMove(738,434);
                    ro.delay(300);
                    ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                    ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                    //点击最大数量
                    ro.mouseMove(832,442);
                    ro.delay(300);
                    ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                    ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                    //点击使用
                    ro.mouseMove(762,495);
                    ro.delay(300);
                    ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                    ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                    p++;*/
                } catch (AWTException e) {
                    e.printStackTrace();
                }
            }


        }
    }
}
